package DEEPERsource.DEEPERsource.source.statistics;

import java.util.Collection;

import deeper.Interaction;
import deeper.InteractionType;

public class Counter {

	public int countByInteractionType(Collection<Interaction> list, InteractionType type){
		int result = 0;
		for(Interaction i : list){
			if(i.status.equals(type))
				result++;
		}
		return result;
	}
	
}
